Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@keegangeorge
Copy link
Member

🔍 Overview

This PR ensures we prefer getting the API key from environment variables when it is a seeded model.

ℹ️ More info

Seeded models have negative IDs and the environment variable for them will be in the format of:

DISCOURSE_AI_SEEDED_LLM_API_KEY_#{id.abs}

So if the seeded model we want to provide an api_key for has an id of -2 we use the environment key:

DISCOURSE_AI_SEEDED_LLM_API_KEY_2

@keegangeorge keegangeorge merged commit 9928261 into main Nov 5, 2024
6 checks passed
@keegangeorge keegangeorge deleted the prefer-env-for-seeded branch November 5, 2024 14:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants